text = 'hello python'
print(repr(text.ljust(20)))
print(repr(text.rjust(20)))
print(repr(text.center(20)))
print(text.rjust(20, '*'))
print(text.center(20, '*'))

print(repr(format(text, '<20')))
print(repr(format(text, '>20')))
print(repr(format(text, '^20')))
print(format(text, '=>20s'))
print(format(text, '*^20s'))

print(repr('{:>20s} {:>20s}'.format('hello', 'python')))

x = 1.2345
print(repr(format(x, '>10')))
print(repr(format(x, '^10.2f')))
